import reg from '@/plugin/mixins/mixin_reg'
import dataDic from '@/mixins/dataDic'
export default {
  mixins: [reg, dataDic],
  data() {
    return {
      dialogVisible: false,
      dialogParams: '',
    }
  },
  methods: {
    async open(row) {
      // 初始化数据
      await this.beforeOpen && this.beforeOpen(row)
      this.dialogParams = row
      this.dialogVisible = true
      this.$refs['form'] && this.$refs['form'].resetFields();
    },
    close() {
      this.dialogVisible = false
    },
    handleClose(done) {
      done()
    }
  },
}
